package com.xianggu.designMode.decorator.demo01;

/**
 * 炒面快餐
 * @author chengjy
 * @date 2025/3/14
 */
public class FriedNoodles extends FastFood{// 具体构件角色


    public FriedNoodles(float price, String desc) {
        super(10, "炒面");
    }

    @Override
    public float cost() {
        return 0;
    }

    @Override
    public float getPrice() {
        return super.getPrice();
    }
}
